package org.example.factory;

/**
 * @BelongsProject: javaFoundation
 * @BelongsPackage: org.example.factory
 * @Author: dtq
 * @CreateTime: 2023-12-14  15:30
 * @Description: TODO
 * @Version: 1.0
 */
public class TestFactory {
    public static void main(String[] arg) {
        PhoneFactory factory = new PhoneFactory();
        Phone HMPhone = factory.makePhone("HMPhone");            // make xiaomi phone!
        IPhone iPhone = (IPhone)factory.makePhone("iPhone");    // make iphone!
    }
}
